home *** CD-ROM | disk | FTP | other *** search
/ CD Exchange / CD Exchange - Volume 1.iso / utils / disk / powercache / installation / install_powercache.iconx < prev    next >
Encoding:
Text File  |  1993-05-24  |  1.8 KB  |  69 lines

  1. FailAt 20
  2.  
  3. Echo "PowerCache installation script for use with IconX"
  4. Echo "Copyright © 1993, Michael Berg"
  5. Echo "All Rights Reserved"
  6. Echo ""
  7.  
  8. Echo "Installing Libraries:"
  9.  
  10. Echo "    reqtools.library"
  11. Version > NIL: reqtools.library 37
  12. If NOT WARN
  13.     Echo "        You already have: " NOLINE
  14.     Version reqtools.library
  15.     Echo "" NOLINE
  16.     Ask "        Do you want to install version 38.1022 of reqtools.library?"
  17.     If WARN
  18.         Echo "        Copying reqtools.library to your LIBS: ..."
  19.         Copy >NIL: /libs/reqtools.library LIBS:
  20.     Else
  21.         Echo "        Skipped"
  22.     EndIf
  23. EndIf
  24.  
  25. Avail >NIL: FLUSH
  26.  
  27. Echo ""
  28.  
  29. If EXISTS Locale:Catalogs
  30.     Ask "Do you wish to install the PowerCache catalog files? [y/n]: "
  31.     If WARN
  32.         Copy >NIL: Locale Locale: All
  33.         Echo "Catalogs installed"
  34.     EndIf
  35. Else
  36.     Echo "Catalog files not installed -- no Locale directory found"
  37. EndIf
  38.  
  39. If EXISTS SYS:Tools/Commodities
  40.     SetEnv TargetDir Sys:Tools/Commodities
  41. Else
  42.     SetEnv TargetDir Sys:
  43. Endif
  44.  
  45. Ask "Do you wish to install the 68020 version of PowerCache? [y/n]: "
  46. If WARN
  47.     SetEnv SourceFile PowerCache.020
  48. Else
  49.     SetEnv SourceFile PowerCache
  50. EndIf
  51.  
  52. Echo "Installing the PowerCache files in $TargetDir/PowerCache/"
  53.  
  54. MakeDir $TargetDir/PowerCache
  55. MakeDir $TargetDir/PowerCache/Documentation
  56.  
  57. Copy >NIL: /$SourceFile $TargetDir/PowerCache
  58. Copy >NIL: /$SourceFile.info $TargetDir/PowerCache
  59. Copy >NIL: /Documentation/#?.guide#? $TargetDir/PowerCache/Documentation
  60.  
  61. Echo "Adding to S:User-Startup..."
  62.  
  63. Echo ";BEGIN PowerCache" >>S:User-Startup
  64. Echo "Assign PowerCache: *"$TargetDir/PowerCache*" DEFER" >>S:User-Startup
  65. Echo ";END PowerCache" >>S:User-Startup
  66.  
  67. Echo "*NNote: Make sure your S:Startup-sequence executes S:User-Startup!"
  68. Echo "*NDone. You may close the window now."
  69.